<template>
  <div class="project-dynamics-page">
    <h2 class="content-title">项目动态</h2>
    <div class="project-list">
      <div class="project-item" v-for="(project, index) in projectList" :key="index">
        <div class="project-image">
          <img :src="project.image" :alt="project.title">
        </div>
        <div class="project-content">
          <span class="project-tag">{{ project.tag }}</span>
          <h3 class="project-title">{{ project.title }}</h3>
          <div class="project-meta">
            <span class="project-date">{{ project.date }}</span>
            <span class="project-location">{{ project.location }}</span>
          </div>
          <p class="project-summary">{{ project.summary }}</p>
          <a href="javascript:;" class="read-more">查看详情</a>
        </div>
      </div>
    </div>

    <div class="pagination">
      <el-pagination
        background
        layout="prev, pager, next"
        :total="100"
        :current-page="1"
        :page-size="10">
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ProjectDynamicsPage',
  data() {
    return {
      projectList: [
        {
          title: '深圳市交通智能调控系统 | 全面投入运营',
          date: '2023-05-10',
          tag: '项目上线',
          location: '深圳市',
          image: 'http://www.sutpc.com/resource/sutpc/images/project1.jpg',
          summary: '由中空领航承建的深圳市交通智能调控系统于今日全面投入运营。该系统整合全市约2500个路口的信号控制系统，通过AI算法优化信号配时，已在试运行期间使主要干道通行效率提升25%，为市民出行提供便利。'
        },
        {
          title: '雄安新区交通大数据平台建设项目 | 阶段性验收通过',
          date: '2023-04-28',
          tag: '项目进展',
          location: '河北雄安',
          image: 'http://www.sutpc.com/resource/sutpc/images/project2.jpg',
          summary: '雄安新区交通大数据平台建设项目顺利通过阶段性验收。该平台作为雄安新区智能城市建设的重要组成部分，将为雄安新区提供交通出行预测、交通运行监测、交通规划评估等全方位服务，为城市规划建设提供数据支撑。'
        },
        {
          title: '广州市"智慧交通大脑"项目 | 荣获国际智能交通创新奖',
          date: '2023-04-15',
          tag: '项目荣誉',
          location: '广州市',
          image: 'http://www.sutpc.com/resource/sutpc/images/project3.jpg',
          summary: '中空领航为广州市打造的"智慧交通大脑"项目在国际智能交通协会年度评选中荣获创新奖。该项目通过交通数字孪生技术，构建了城市级交通网络实时仿真系统，实现了交通拥堵的精准预测与智能管控。'
        },
        {
          title: '成都市轨道交通客流预测系统 | 开发顺利推进',
          date: '2023-03-30',
          tag: '项目进展',
          location: '成都市',
          image: 'http://www.sutpc.com/resource/sutpc/images/project4.jpg',
          summary: '成都市轨道交通客流预测系统开发工作顺利推进，目前已完成核心算法的开发与测试。该系统将利用大数据和AI技术，为成都地铁提供精准的客流预测服务，优化运力调配，提升乘客出行体验。'
        },
        {
          title: '杭州市"未来道路"试点工程 | 正式启动',
          date: '2023-03-15',
          tag: '项目启动',
          location: '杭州市',
          image: 'http://www.sutpc.com/resource/sutpc/images/project5.jpg',
          summary: '中空领航参与的杭州市"未来道路"试点工程今日正式启动。该项目将在杭州城西科创大走廊打造一条全感知、自适应的未来道路，集成车路协同、智能照明、柔性路面等创新技术，为未来城市交通系统探索新模式。'
        }
      ]
    }
  }
}
</script>

<style scoped>
.project-dynamics-page {
  max-width: 100%;
}

.content-title {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.content-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.project-list {
  margin-bottom: 40px;
}

.project-item {
  display: flex;
  padding: 25px 0;
  border-bottom: 1px solid var(--border-color);
}

.project-item:last-child {
  border-bottom: none;
}

.project-image {
  flex: 0 0 300px;
  margin-right: 30px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-item:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  flex: 1;
  position: relative;
  min-height: 180px;
}

.project-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 10px;
}

.project-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-color);
  transition: color 0.3s;
}

.project-item:hover .project-title {
  color: var(--primary-color);
}

.project-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.project-date {
  margin-right: 20px;
}

.project-location {
  display: inline-flex;
  align-items: center;
}

.project-location:before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url('../../../assets/location.svg') no-repeat center;
  background-size: contain;
  margin-right: 5px;
}

.project-summary {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  bottom: 0;
  right: 0;
  transition: color 0.3s;
}

.read-more:hover {
  color: var(--secondary-color);
}

.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .project-item {
    flex-direction: column;
  }
  
  .project-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .project-content {
    padding-bottom: 40px;
  }
}
</style> 